package de.haw.HES.Datentypen;

import java.io.Serializable;
import java.security.InvalidParameterException;

public abstract class Currency implements Serializable {

	protected Double amountOfCurrency;

	public Double getAmountOfCurrency() {
		return amountOfCurrency;
	}
	
	public void currencyCheck(Currency other) {
		if(!this.getClass().equals(other.getClass())) {
			throw new InvalidParameterException();
		}
	}
	
}
